﻿using Aker.DevTeam;
using Extensions;
using System;
using System.Data;

namespace Aker.Hammadde
{
    public partial class UreticiBarkod : XForm
    {
        public UreticiBarkod()
        {
            InitializeComponent();
        }

        DataTable dt;
        private void TopluMetrajGuncelleme_Load(object sender, EventArgs e)
        {
            Data.TAM.UreticiBarkodTableAdapter.Fill(Data.DB.UreticiBarkod);
            gv.Init(Data.DB.UreticiBarkod);
            gv.MakeReadOnly("UreticiBarkod", "AkerBarkod");
            gv.OptionsView.ShowViewCaption = false;
            gv.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
            gv.BestFitColumns();
        }


        private void btnKaydet_Click(object sender, EventArgs e)
        {
            Data.TAM.UreticiBarkodTableAdapter.Update(Data.DB.UreticiBarkod);
        }
    }
}
